package cn.wink.springcloud.controller;

import cn.wink.springcloud.utils.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author xw
 * @date 2020-05-08 23:37
 */
@Slf4j
@RestController
@RequestMapping("/payment")
public class PaymentConsul {

    @Value("${server.port}")
    private String serverPort;


    @GetMapping("/get")
    public Result create() {
        Map<String,Object> map = new HashMap<>();
        map.put("端口号",serverPort);
        map.put("consul","consulconsulconsulconsul");
        return Result.ok(map);
    }
}
